/*
 * @Author: liucun-0626 1511974295@qq.com
 * @Date: 2024-01-26 17:13:08
 * @LastEditors: liucun-0626 1511974295@qq.com
 * @LastEditTime: 2024-04-22 13:58:17
 * @FilePath: \qingdaoBank\src\api\common.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/fetch"

export function getWechatUserInfo(params) {
    return request({
        url: '/promoter/getWechatUserInfo.do',
        method: 'get',
        params
    })
}

export function getSchoolList() {
    return request({
        url: '/qdjx/baseinfo/getAllSchoolList.do',
        method: 'get'
    })
}

export function getVehicleKindInfo(params) {
    return request({
        url: '/qdjx/baseinfo/getVehicleKindInfo.do',
        method: 'get',
        params
    })
}

export function getLearnPackageList(params) {
    return request({
        url: '/qdjx/baseinfo/getLearnPackageList.do',
        method: 'get',
        params
    })
}

export function getSmsCode(params) {
    return request({
        url: '/qdjx/home/getSmsCode.do',
        method: 'post',
        data: params
    })
}

export function uploadStudentPhoto(params) {
    return request({
        url: '/qdjx/student/uploadStudentPhoto.do',
        method: 'post',
        data: params
    })
}

export function uploadLog(params) {
    return request({
        url: '/qdjx/home/uploadLog.do',
        method: 'get',
        params
    })
}

export function getIdCardInfo(params) {
    return request({
        url: '/qdjx/home/getIdCardInfo',
        method: 'post',
        data: params
    })
}

//微信解绑
export function unBindWechatUser(params) {
    return request({
        url: '/promoter/unBindWechatUser.do',
        method: 'post',
        data: params
    })
}